@isTest
private class QueryAccountForOrderTest {
    static testMethod void testMethod1() {
    	Account dealer  = TestUtils.createAccount();
    	dealer.AccountNumber = '123456';
    	dealer.Name = 'dealer test';
    	dealer.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('Dealer', 'Account');
    	insert dealer;

    	Account terminal = TestUtils.createAccount();
    	terminal.Name = 'test Account';
    	terminal.AccountNumber = '123457';
    	insert terminal;


    	// Account terminal1 = TestUtils.createAccount();
    	// terminal1.Name = 'test Account 123458';
    	// terminal1.AccountNumber = '123458';
    	// insert terminal1;

    	

        Map<String,String>data = new Map<String,String>();
        data.put('dealer','123456');
        data.put('terminal','test Account');
        System.debug(QueryAccountForOrder.doPost(data));


        MajorUserInfo__c mu = new MajorUserInfo__c();
    	mu.Dealer__c = dealer.Id;
    	mu.MajorCustomer__c = terminal.Id;
    	insert mu;

    	System.debug(QueryAccountForOrder.doPost(data));



    }
}